package edu.polsl.bio.str.manager.event;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEvent;

/**
 * //todo class description
 * <p/>
 * Created on: Jun 14, 2011 9:09:10 PM <br/>
 * <a href="http://www.polsl.pl">www.polsl.pl</a>
 *
 * @author lukasz.olczak@polsl.pl
 */
public class NewJobGroupEvent extends BaseManagerEvent {

  private long jobGroupId;

  public NewJobGroupEvent( long jobGroupId) {
    this.jobGroupId = jobGroupId;
  }

  public long getJobGroupId() {
    return jobGroupId;
  }

  @Override
  public void visit(ManagerHandlerVisitor visitor) {
    visitor.onNewJobGroupEvent(this);
  }

  @Override
  public String toString() {
    return "NewJobGroupEvent{" +
           "jobGroupId=" + jobGroupId +
           "} " + super.toString();
  }
}
